//
//  HJSupportInputBar.h
//  KaiChat
//
//  Created by lx on 2023/12/22.
//

#import <UIKit/UIKit.h>
#import "HJResponderTextView.h"

NS_ASSUME_NONNULL_BEGIN

@class HJSupportInputBar, HJGradientButton;
 
@protocol HJSupportInputBarDelegate <NSObject>
 
 
- (void)inputBar:(HJSupportInputBar *)textView didChangeInputHeight:(CGFloat)offset;

- (void)inputBar:(HJSupportInputBar *)textView didSendText:(NSString *)text;

- (void)inputBarDidTouchKeyboard:(HJSupportInputBar *)textView;

- (void)inputBarDidClickFAQButton:(HJSupportInputBar *)textView;
- (void)inputBarDidClickFAQContentButton:(HJSupportInputBar *)textView;

- (void)inputBarDidDeleteBackward:(HJSupportInputBar *)textView;

- (void)inputTextViewShouldBeginTyping:(UITextView *)textView;

- (void)inputTextViewShouldEndTyping:(UITextView *)textView;

@end
 

@interface HJSupportInputBar : UIView

 
@property (nonatomic, strong) UIView *lineView;
@property (nonatomic, strong) UIButton *FAQButton;
@property (nonatomic, strong) UIButton *keyboardButton;
@property (nonatomic, strong) UIButton *sendButton;
@property (nonatomic, strong) HJResponderTextView *inputTextView;
@property (nonatomic, strong) UILabel *placeholderLabel;
 
@property (nonatomic, strong) HJStyle2Button *FAQContentButton;


@property (nonatomic, weak) id<HJSupportInputBarDelegate> delegate;

 
- (void)addEmoji:(NSString *)emoji;

- (void)backDelete;

- (void)clearInput;

- (NSString *)getInput;

- (void)updateTextViewFrame;

- (void)changeToKeyboard;

@end


NS_ASSUME_NONNULL_END
